added hints
moved JS logic to own folder