Seperated to a .js file