fixed move up/down in functions.js