Using `pub build' to generate Javascript