Added js instantiation of foundation script