added js variables
got values to load when clicked