updated coffee script with set interval