fix type detection in javascript
add new type

new type for build in object and function
add Class function