move onload ($) out of Project::constructor