some namcap fixes for casperjs