changes JS to coffeescript for Photos and fixed JS for carousel