js at the end

moving scripts to the end and adding a stub