added in ability for sdk contacts and removed all previous js code