page moved to JavaScript: Determine Type of Object