javascript: added some stuff