cleaned up index and js files a bit