added front end JS examples