collection of javascript code