ADD Javascript code sample and CHANGE rename samples so they are more consistent