Java Script Class