page moved to JS: Determine Type of Object