fixed up js classes