Remove javascript for login/register pages.