Refactored transfering arguments from server to JavaScript for Access Page