[#issue-18] refactor jsbridge code to take event name and timestamp into account