fixed javascript error in initialize functions