Enter key login and JS formatting