added new js methods to rhino engine
changed the script from StringValue to TextValue
removed the null check for the value and in all of the methods a corresponding null handlers have been added
changed the rhino method to adapt for biobankconnect 2.0 demo