changed interface and switched to jquery plugin
updated doc