Remove closures from beaglebone.js