Simple javascript presentation engine