Remove unnecessay loading of .js