Fix exam creation js

Signed-off-by: Marco Rivadeneyra <rockiano@gmail.com>