Unification of javascript