Merge https://gist.github.com/githop/3d1e547c54d558e39b3d
js complete