Fixed path resolving when importing javascript