Fixes unwanted loading of JS