added jquery fn def and fixed livereload