Moved JS to update cart into core.

Signed-off-by: Zane M. Kolnik <zanematthew@gmail.com>