Updated costs in context to use plain javascript rather than coffeescript