fixed JS errors from "jake lint"