Framework in Javascript