Added onready isloggedin function on jqinit