Bug 1089511 - refactor system/js/bluetooth with test case