Hi @MrSimple,
there was a similar question in the following topic: Convert Northing/Easting
As @scottUFR already stated you can use proj4js for that. There is a code snipped you can change a little bit for your needs in the linked topic.
Best, Lennart