Move this js to js file.