Getting front end code to talk to back end code