Made javascript scripts to load asynchronously, not quite working yet