Accidentally wrote JS-like code