JS change from GET to POST