[javascript] How to workaround 'FB is not defined'?