Added javascript utilities.