trigger POST with attached data from javascript