a simple barebone JS fraemwork