fixed bug in JS preventing other JS from loading