Added click function to scripts.js