Cleaned up js.