Revert "js fixing"

This reverts commit 23d4e701fc183d404e07829f7a82b5b4e7beac2b.