mae of oos in Javascript