Moved JavaScript to Layouts folder

Moved JavaScript to Layouts folder because the paths no longer worked
when running from a new site collection.