indenting
put js in external file