fixed bug in javascript include helpers