Create script.js

Added main file for JavaScript code.