javascript override tostring method