Got rid of JS errors