[js] add special case for Std to genjs (closes #3286)