contruct a framework and add some js plugins