fixed the init function not passing a jQuery object to the function and how template.keys was being instantiated as a variable instead of an object