Fix javascript compiling when there are no modules