In-Browser JavaScript weave planner