started moving all js functions to one file