app_id added to publish subscribe methods in js
bug in js subscribe due to subscribe_o removed
minor modifications