Cleans up js