Angular styled plain javascript validation resource