Fix bug on custom javascript command.