bonescript.js: cleanup with individual variables

Breakup arguments for getPlatform callback into individual variables
because Blockly doesn't understand objects