create VirtualMachine class
create test code
change document.Event to enchant.Event
remove global namespace and implement test btns
merge master