Minor upgrades

Adding a delay option
JS cleanup and linting