Fixed error on views/unit.js