Add new js file for the logic