Make js compatible