Typing Java Script