Create javascript.js

create the javascript file, add functions for the buttons