cleaned up js files a bit