documented .js a bit