fixes to buildcontrol
fix js reference