polymer code analysis & js inherit jpg