Style and js fiddling with getting a correct word