Added javascript scaffold events