learn a simple js framework