Well call me crazy - I'm working about 80 hrs a week right now and am supposed to be working now but I could not resist this one. The JS in this example takes a number and converts it into hours and minutes. I used this in a math game in which the learner was supposed to get Ellen to the bus on time by estimating how long it would take her to perform certain activities before getting to the bus. The learners then had to answer some time-related questions based on the estimate.
This example shows one of the questions. If you look at the source, you will notice there are 3 JS triggers on the second slide - these all calculate the hours and minutes based on a variable called ellenTime but pass the calculated value to 3 separate variables on Storyline. I then adjust 2 of these variables to create 2 incorrect answers.
demo:
http://pinchedhead.articulate-online.com/3796832589source:
https://dl.dropboxusercontent.com/u/73851/JSChallenge.zip