Added code for the sign out

Also corrected the backbone javascript file.