replaced javascript with coffeescript
use ngCloak to hide template