Ignore mac thumbnail files
Refactor. Javascript and html now in seperate files