added js method
added user check conforming to the orion script
new version of orion script