Javascript Check If Object Is A String