simple js native utils