Some of the JS sample code correctly does require('ti.facebook'). Other parts don't. Update?