fix include_once for JavaScript

the second include was never removed, causing an endless loop.