Moved js script to TypeScipt WIP