added functions to export some js functionality in Force.