Added solution for JS1