added "Show generated code" option
updated js