Your script doesn't tell the element to float back once it has reached the right side of the page. Here's a possible solution:


<!doctype html>
<html>
<head>
<script...