Moved all JavaScript code to Eclipse