Added javascript behaviours to story package.