cleaned up js files per our code review