Added javascript helper