fixed JS examples