Trying to move commands to js, apparently they are broken...