small javascript helper framework