some dumb problems in JS including basic encap tricks