can now pass variables from controller to html to js for story images