add global var init for pam.js & release PamJS_v1.0.2