Added tests 16,17 & 19 for JavaScript