Improve signin JS