Javascript revamp, basic functionality for clicker type done