Clean JavaScripts: isolation.

Now, they should be externalized into dedicated files.