adding cache and changing language to js