moved javascript template scripts from application to show.html view
refactored javascript files, so that all resources make ajax calls through main.js, added incrementer and functions for displaying card front and back text one at a time