Added infooter option, separated js into new frontend.js file, updated script enqueing to use new file and localize with variables.