Reformatted js to fit with new structure used in Wordpress theme