refactored replaceWithDelay function, renamed Dom object literal
rearrage functions, remove whitespace
Merge pull request #5 from danbender/styling

Styling