removed unnecessary initialization in js