Some JS Tunning

Made JS not output some console errors.