Update main.js

Image and video formatting. Better?
Merge pull request #3 from itbas/localbranch1

Update main.js