Forms auth, javascript fixes