Removing JS errors