Refactered Javascript files.

That way they will be included with EXE