Javascript function to convert HK to IAST.