added javascript scope example