sleep when triggering modal
add coffeescript dependency