fixed initial javascript problems...