js plugin

js functions