Dynamically switch sample codes using AJAX

Signed-off-by: Piotr Bocheński <bochenski.piotr@gmail.com>