Separated out more functionality into basic functions, adding some intelligence for canskip into the JQuery.