added initial javascript