Working on #3. Fixed the javascript calls to add the pip class. Added console output when event is thrown. It will have to be removed.