extracted JS into main.js
converted pictures/index to HAML