fixing variable assignment error in section to include js files