Added several examples for Javascript