Fixed Javascript formatting issues