move functions in js v1.1