Refactored rename functions
Fix indentation
Adding watch for copying js files to dist