added script/main.js as optimalPath and added namespace.js to index.html