Add some docs and make a javascript 'mistake'