Removed legacy part of js