[js] getpocket