fixed js at the bottom of the file