Inlined JS to compensate for shims; added optimization tools