Script like jquery plugin