lil refactor of js
have a focus out TODO add in content