simplify java script rendering using Option annotation