Fixed a very annoying bug that generated massive javascript inclusion errors. Javascript files are now stored separately.