tidying up js files
code format
updating jquery and json2