Cleaned up JavaScript -- removed commented code