updated test.html, group related functions in bugle.js