js cloudfront helper method fix for jammit

js cloudfront helper method fix for jammit