version 0.3.0, turned to object-orientied design, added a js folder