Replaced native JS interface using string constants with library that allows access to native JS objects.