fixes typo and adds todo to add an example

that uses require.js