foundations in js