Small code change for create_targets.js module