fixed #3 #5 all javascript functions in functions.js