Add register feature to Login Modal, code cleanup with JSLint, update parameters for login AJAX