javascript blocks