Fix bug - function.js not found