Fix routing and move js files into a sub directory
Remove ~ in package.json