imjs optimazation