make sure there is no dots in js variable