added ability to track actions with javascript, fixes #12