Move XBlock entry points to separate JS file