Add function to update pointer inside JS value
This is needed because pointer of the object could be updated by the function, typically done by "&"
Merge pull request #96 from infosia/update_nativevalue

Add function to update pointer inside JS value