WIP for the JS compiler