fixed initialization problem with client side JS

FED-110