Enabled javascript callback.
Added dummy callback method. Please note that you need to add an index property to each of your pin objects for this to make any sense.