Reorganised js libs and helpers: Cookies, console shim and mobile plugins have been extracted into their own files so that they are easier to update and maintain