Convert story view to Javascript.