Define your Class with JavaScript.