Added leading slashes to js paths
Added attr to submit