no need jquery when, i found a better api :):(