Removed debug log and fixed .js