fixing embedded js