An Object model javascript library for two-way communication