When developing locally use the following servers
For Python 2.7x
python -m SimpleHTTPServer 8888 &For Python 3.x
python -m http.server 8888 &For NodeJS
npm install http-server -g
http-server
For Ruby
ruby -run -e httpd . -p 8888For PHP
php -S localhost:8888