fixed js and new attempt at flash