Cleaned up index file with JSHint