javascript various examples