Separated JavaScript to js file.