Data is now being sent to the template. Need to work on passing the data from template to Javascript