refactored web jar locate helper

Change-Id: Ifa8fcb9d24d721e3bf782f127fa37cae1a38a347