Added JavaScript port