Added js code to load foo