jquery bug fixes / refactoring jquery + erb/routes

Created a helper method called user_signed_in?