Javascript samples