Fixed translating primitive arrays to js.
Added support bitwise operations in js translator