Utilities for Javascript plug

Its def doing what I think it does... just not what I say it does :)