removed javascript errors from rails defaults