add storyline id to picture and phrase javascripts