mlbrowser: adding garbage collector and clear cache functions in javascript