Added javascript code used in Objective C