Changed the way JS call is handled. Implemented identity lookup.