Removing inline js to custom.js file