adding some stuff for javascript