Fix jsbuild directives to allow static build 

This allows a static build to be done and it runs the mappanel example properly. Before things got included in the wrong depencency order.