simplified API by jQuery