Fixed js handler compile errors