[JS] Refactoring
[JS] Remove useless core