invoke callback to determine when rendering did finish
changed markup call javascript to js
introduced grunt-once api and pretend longer rendering times for testing