Fixed up js