Added Javacript APIs and Events