Improves .js files structure