JavaScript cleanup, checkout improved, login/register improved