moving js to the root
client-side support