Interface framework in JavaScript